﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
  public  class ADDBLL
    {
      ADDDAL dal = new ADDDAL();
        /// <summary>
        /// 加入
        /// </summary>
        /// <returns></returns>
      public List<Project> ShowADD()
      {
          return dal.ShowADD();
      }
             /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
      public int DeleteADD(int id)
      {
          return dal.DeleteADD(id);
      }
             /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
      public int Add_Add(Model.Project p)
      {
          return dal.Add_Add(p);
      }
             /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
      public Project ShowProjectX(int id)
      {
          return dal.ShowProjectX(id);
      }
             /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
      public int UpdateADD(Project data)
      {
          return dal.UpdateADD(data);
      }
             /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
      public List<Project> SeleteProject(string name)
      {
          return dal.SeleteProject(name);
      }
    }
}
